local addon = CreateFrame"Frame"
addon:RegisterEvent"CHAT_MSG_SPELL_BREAK_AURA"
addon:SetScript("OnEvent", function(self, event, ...)
	local s = arg1
	local name = UnitName"player" 
	local _, _, target, buff, player, spell = string.find(s, "(.+)'s (.+) is removed by (.+)'s (.+).")
	if UnitExists"target" and UnitIsEnemy("target", "player") and name == player and spell == "Dispel Magic" then
		local type = select(2, IsInInstance())
		local text = string.format("Dispel: %s (%s)", buff, target)
		if type == "arena" then
			SendChatMessage(text, "PARTY")
		end	
		MikSBT.DisplayMessage(text, MikSBT.DISPLAYTYPE_NOTIFICATION, true, 9 * 255, 9 * 255, 9 * 255, 22)
	end
end)
